var e = require("339469457B99569C55F201426D89DBD0.js").getLoginUrl();

App({
    data: {
        userInfo: {},
        backUserInfo: {},
        hasUserInfo: !1,
        openId: "",
        nickName: "",
        canIUse: wx.canIUse("button.open-type.getUserInfo")
    },
    onLaunch: function() {
        var n = wx.getStorageSync("logs") || [];
        n.unshift(Date.now()), wx.setStorageSync("logs", n);
        var a = this;
        wx.login({
            success: function(n) {
                wx.request({
                    url: e,
                    data: {
                        code: n.code
                    },
                    success: function(e) {
                        console.log(e), 200 == e.data.code && (a.data.openId = e.data.data.openid);
                    }
                });
            }
        });
    },
    globalData: {
        userInfo: null,
        backUserInfo: null
    }
});